﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Pay.Data {
	public partial class BankNumberMap
		: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<BankNumber> {
		public BankNumberMap() {
			// table
			ToTable("mc_BankNumber", "dbo");

			// keys
			HasKey(t => t.Id);

			// Properties
			Property(t => t.Id)
				.HasColumnName("Id")
				.HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
				.IsRequired();
		}
	}

	public partial class BankCodeMap
		: System.Data.Entity.ModelConfiguration.EntityTypeConfiguration<BankCode>
	{
		public BankCodeMap()
		{
			ToTable("mc_BankCode", "dbo");

			HasKey(t=>t.Id);

			// Properties
			Property(t => t.Id)
				.HasColumnName("Id")
				.HasDatabaseGeneratedOption(DatabaseGeneratedOption.Identity)
				.IsRequired();
		}
	}
}
